"Januar", 2=>"Februar", 3=>"März", 4=>"April", 5=>"Mai", 6=>"Juni", 7=>"Juli", 8=>"August", 9=>"September", 10=>"Oktober", 11=>"November", 12=>"Dezember"); $func = new Functions(); $conn = new Connection(); $config = new Config(); $categoryHeaderText =<< Du befindest dich aktuell in dem Trendin News Bereich - hier findest du die meisst geklickten Artikel auf BuzzerStar.COM:

END; $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $table = $config->sql_tablename_publish_de(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 AND p_star=1 ORDER BY p_starcount DESC, p_timestamp DESC LIMIT 20"); $stmt->execute(); $myRowCount = $stmt->rowCount(); $whileCount = 1; // Warnung: hier muss die Eins so stehen bleiben und darf nicht Null sein while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { //echo "whileCount: $whileCount und maxPageCount:$maxPageCount
"; /* if ($whileCount>=$maxPageCount){ $BorderContentHTML =<< END; }; */ if ($whileCount<4){ $AdvertsContentHTML =<< END; }; $whileCount++; $headline = $rows["p_headline"]; $article = $rows["p_articletext"]; $author = $rows["p_authorname"]; $backlink = $rows["p_backlink"]; $shortcode = $rows["p_shortcode"]; $category_id = $rows["p_category"]; $picture_desc = $rows["p_picture_1_description"]; $linkingcode_twittr = "https://www.buzzerstar.com/show.php?a=$shortcode"; $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); $list = explode(". ", $article); $result = substr($article, 0, 240); $sentences = preg_split("/[!?.] /", $article, -1, PREG_SPLIT_NO_EMPTY); for($i=0; $i<=2; $i++){ if (strlen($sentences[$i])>1){ $sentences_content .= $sentences[$i].". "; } } $x = 320;$y = 260; $PictureHTMLContent = <<$picture_desc

$picture_desc
END; list($pre_date,) = explode(" ",$rows["p_timestamp"]); $monat = date("n",strtotime($pre_date)); $date_month = $monate[$monat]; $date_day = date("j", strtotime($pre_date)); $date_year = date("Y", strtotime($pre_date)); $keywords_list = ""; $keyword_meta = ""; $list = explode(";",$rows["p_tags"]); $tagcode = << LIST; foreach ($list as $entry23) { if (strlen($entry23)>1 && !empty($entry23)){ $keywords_list .= "$entry23 | "; $keyword_meta .= "$entry23, "; $tagcode .= <<$entry23 LIST; }//if (strlen($entry23)>1){ } $tagcode.= << LIST; $ReturnHtmlString .=<<
$categoryHeaderText
Erzähl es deinen Freunden:

(Klick eines der bunten Icons unter diesem Text
zum teilen mit deinen Freunden auf Facebook,
Twitter oder WhatsApp!)



Tags dieser News $tagcode

$BorderContentHTML
END; $categoryHeaderText = ""; $PictureHTMLContent = ""; $AdvertsContentHTML = ""; } // while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { // copyright $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger. All Rights Reserved."; $ReturnHtmlString .=<< END; if ( $myRowCount >= 1 ){ $robots = "INDEX,FOLLOW,ALL"; } else { $robots = "NOINDEX,FOLLOW"; } $ReturnContentArray = array("returncontent" =>$ReturnHtmlString, "robots"=>$robots); return $ReturnContentArray; } public function CategoryPageGenerateContent($page, $CategoryID){ $ReturnHtmlString = ""; $sentences_content = ""; $sentences = array(); $PictureHTMLContent = ""; $BorderContentHTML =""; $AdvertsContentHTML = ""; $monate = array(1=>"Januar", 2=>"Februar", 3=>"März", 4=>"April", 5=>"Mai", 6=>"Juni", 7=>"Juli", 8=>"August", 9=>"September", 10=>"Oktober", 11=>"November", 12=>"Dezember"); $func = new Functions(); $conn = new Connection(); $config = new Config(); $texts = new Texts(); $catg_array = $config->array_category(); $category = $catg_array[$CategoryID]; $arrayCategoryHeaderText = $texts->categoryTexte(); $categoryHeaderText1 = $arrayCategoryHeaderText[$CategoryID]; $categoryHeaderText =<< Du befindest dich aktuell in dem News Bereich "$category":

$categoryHeaderText1 END; if (!is_numeric($page) || !isset($page) || empty($page) || strlen($page) <= 0 ){ $page = 0; } $maxPageCount = $config->catg_max_results(); $from = ( $maxPageCount * $page ); if (!is_numeric($from) || !isset($from) || empty($from) || strlen($from) <= 0 ){ $from = 0; } $CurrentPage = $page; $PageNext = $CurrentPage + 1; $PageNextButton = "https://www.buzzerstar.com/kategorie/$category&p=$PageNext"; $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 AND p_category=:p_category ORDER BY p_timestamp DESC LIMIT $from, $maxPageCount;"); $stmt->bindValue(':p_category', $CategoryID, PDO::PARAM_INT); $stmt->execute(); $myRowCount = $stmt->rowCount(); $whileCount = 1; // Warnung: hier muss die Eins so stehen bleiben und darf nicht Null sein while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { //echo "whileCount: $whileCount und maxPageCount:$maxPageCount
"; if ($whileCount>=$maxPageCount){ $BorderContentHTML =<< END; }; if ($whileCount<4){ $AdvertsContentHTML =<< END; }; $whileCount++; $headline = $rows["p_headline"]; $article = $rows["p_articletext"]; $author = $rows["p_authorname"]; $backlink = $rows["p_backlink"]; $shortcode = $rows["p_shortcode"]; $category_id = $rows["p_category"]; $picture_desc = $rows["p_picture_1_description"]; $linkingcode_twittr = "https://www.buzzerstar.com/show.php?a=$shortcode"; $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); $list = explode(". ", $article); $result = substr($article, 0, 240); $sentences = preg_split("/[!?.] /", $article, -1, PREG_SPLIT_NO_EMPTY); for($i=0; $i<=2; $i++){ if (strlen($sentences[$i])>1){ $sentences_content .= $sentences[$i].". "; } } $x = 320;$y = 260; $PictureHTMLContent = <<$picture_desc

$picture_desc
END; list($pre_date,) = explode(" ",$rows["p_timestamp"]); $monat = date("n",strtotime($pre_date)); $date_month = $monate[$monat]; $date_day = date("j", strtotime($pre_date)); $date_year = date("Y", strtotime($pre_date)); $keywords_list = ""; $keyword_meta = ""; $list = explode(";",$rows["p_tags"]); $tagcode = << LIST; foreach ($list as $entry23) { if (strlen($entry23)>1 && !empty($entry23)){ $keywords_list .= "$entry23 | "; $keyword_meta .= "$entry23, "; $tagcode .= <<$entry23 LIST; }//if (strlen($entry23)>1){ } $tagcode.= << LIST; $ReturnHtmlString .=<<
$categoryHeaderText
Erzähl es deinen Freunden:

(Klick eines der bunten Icons unter diesem Text
zum teilen mit deinen Freunden auf Facebook,
Twitter oder WhatsApp!)



Tags dieser News $tagcode

$BorderContentHTML
END; $categoryHeaderText = ""; $PictureHTMLContent = ""; $AdvertsContentHTML = ""; } // while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { // copyright $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger. All Rights Reserved."; $ReturnHtmlString .=<< END; if ( $whileCount > 1 ){ $robots = "INDEX,FOLLOW,ALL"; } else { $robots = "NOINDEX,FOLLOW"; } $ReturnContentArray = array("keywords"=>"$keyword_meta, $category, news, neuigkeiten, bild, heftig, cool","returncontent" =>$ReturnHtmlString, "category" => $category, "robots"=>$robots); return $ReturnContentArray; } public function WitzeGenerateContent(){ $func = new Functions(); $conn = new Connection(); $config = new Config(); // $detect = new Mobile_Detect; // $deviceTypeMobile = $detect->isMobile(); $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $shortcode = "3314dab93"; // related content //$RelatedMoreContent = $func->GetNewRelatedContent("Mahjong | games | entertainment | spass"); // copyright $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger. All Rights Reserved."; $linkingcode_twittr = "https://www.buzzerstar.com/witze/"; $linkingcode = "https://www.buzzerstar.com/witze/"; $headline = "Die geilsten Witze auf www.BuzzerStar.com!"; $tagcode .= <<Witze
  • LOL
  • Funny
  • Humor
  • Spaß
  • lustige Texte
  • Witz
  • LIST; $table = $config->sql_tablename_witze_de(); $witz_maxcount = $config->witze_max_entry(); $pdo = $conn->prepareQuery(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE 1=1 ORDER BY RAND() LIMIT $witz_maxcount;"); $stmt->execute(); //$witze_text = array(); //$witze_catg = array(); $witze_content =<< END; $row_count = 0; while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { $p_catg = $rows["p_catg"]; $p_text = $rows["p_text"]; $p_catg = preg_replace('/[[:^print:]]/', '', $p_catg); $p_text = preg_replace('/[[:^print:]]/', '', $p_text); //array_push($witze_catg, $rows["p_catg"]); //array_push($witze_text, $rows["p_text"]); $witze_content .=<< $p_catg Witze
    $p_text
  •      
  • END; if ($row_count>=$witz_maxcount){ break 1; } $row_count++; } $witze_content .=<< END; $ReturnHtmlStringSudoku .=<<
    Witze

    Lustiges, Humorvolles und Funny Texte - Blondinen, Funny, Arzt, Tier, Ostfriesen, Computer, Beamten, Kinder, Banker, Ossis, Kneipen Witze!

    $witze_content

    Lustige Texte sind gut zum Lachen und sollen dich erheitern. Witze haben eine lange Geschichte hinter sich und werden von Generation zu Generation übergeben. Es gibt Menschen, die können Tage lang Witze erzählen und somit andere Leute zum schmunzeln bringen. Wer mehr lacht und mehr Spaß am Leben hat, wird älter und hat ein längeres Leben. Wenn ihr Raucher sein solltet, könnt ihr das somit gut ausgleichen. Jeden Tag mit einem Lachen starten, so macht das Arbeiten mehr Spaß und euch gelingen die Dinge des Lebens einfacher. Wir zeigen euch auch ab und an Lustige Videos mit Situtationen, wo du einfach nur OMG LOL sagen kannst. Funny Stuff bis zum Abwinken - auf BuzzerStar.

    Erzähl es deinen Freunden:

    Tags dieser News $tagcode
    "Hackers - Heroes of the Computer Revolution!"

    $copy

    END; return $ReturnHtmlStringSudoku; } public function MahjongGenerateContent(){ $func = new Functions(); $conn = new Connection(); $config = new Config(); $detect = new Mobile_Detect; $deviceTypeMobile = $detect->isMobile(); $hint_mobile = ""; if ($deviceTypeMobile === TRUE){ $hint_mobile = "Du kannst dein Smartphone auch quer halten, um besser zu spielen und mehr vom Spiel zu sehen."; } $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $shortcode = "3314dab93"; // related content //$RelatedMoreContent = $func->GetNewRelatedContent("Mahjong | games | entertainment | spass"); // copyright $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger. All Rights Reserved."; $linkingcode_twittr = "https://www.buzzerstar.com/spiele/mahjong/"; $linkingcode = "https://www.buzzerstar.com/spiele/mahjong/"; $headline = "Mahjong kostenlos: Es ist Zeit Mahjong Solitär zu spielen!"; $tagcode .= <<Mahjong
  • Mahjong solitaire
  • Mahjong Solitär
  • Mahjong spielen
  • Mahjong kostenlos
  • Mah jong
  • Mah Jongg
  • LIST; $ReturnHtmlStringSudoku .=<<
    Mahjong

    Kostenlos Mahjong spielen

    • Mahjong Solitär
    • 0 Paare sind noch offen
    • Vergangene Spielzeit:
    • 00:00:00
    • $hint_mobile

    Gratis MahJong kostenlos Spielen


    Mah Jongg ist ein altes chinesische Brettspiel und wird heute sehr oft MahJong oder Mahjongg genannt. Das Spielziel ist es alle Steine des Spieles paarweise anzuordnen und abzubauen.

    Die Steine legen gestabelt in verschiedenen Reihen nebeneinander, in der Mitte sind viele Felder in übereinander gestabelten Reihen überlagert. Pro Spielzug kann man zwei Spielsteine oder Spielblöcke auswählen und mit einem gleichen Motiv kombinieren, sodass diese dann anschließend vom Spielfeld verschwinden. Man kann einen Spielstein aber nur dann wählen, wenn dieser frei am rechten oder linken Rand einer Reihe liegt. Spiel MahJong hat gewonnen, wer alle Steine nacheinander abgebaut hat. Das klingt wirklich einfach, ist jedoch sehr komplex von der Spielmechanik her. In jeder Runde werden die Steine neu gemischt, sodass man clever planen und strategisch spielen muss.

    Das Mahjong Onlinespiel auf BuzzerStar ist kostenlos und erfordert keine Registrierung - man kann es auf einem Smartphone oder auf dem PC oder Mac spielen. Die Software passt sich automatisch deinem Bildschirm an - MahJong auf BuzzerStar ist reponsive programmiert. Unser Gratis MahJong wird dich für Stunden an den Bildschirm deines Telefon oder Pc fesseln.
    Erzähl es deinen Freunden:

    Tags dieser News $tagcode
    "Hackers - Heroes of the Computer Revolution!"

    $copy

    END; return $ReturnHtmlStringSudoku; } public function SudokuGenerateContent(){ $func = new Functions(); $conn = new Connection(); $config = new Config(); $detect = new Mobile_Detect; $deviceTypeMobile = $detect->isMobile(); $hint_mobile = ""; if ($deviceTypeMobile === TRUE){ $hint_mobile = "Du kannst dein Smartphone auch quer halten, um besser zu spielen und mehr vom Spiel zu sehen."; } $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $shortcode = "3314dab93"; // related content //$RelatedMoreContent = $func->GetNewRelatedContent("soduku | games | entertainment | spass"); // copyright $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger. All Rights Reserved."; $linkingcode_twittr = "https://www.buzzerstar.com/spiele/sudoku/"; $linkingcode = "https://www.buzzerstar.com/spiele/sudoku/"; $headline = "Sudoku kostenlos: Es ist Zeit Soduku zu spielen!"; $tagcode .= <<Sudoku
  • Sodoko
  • Soduko
  • Sudoku spielen
  • Sudoku Zeit.de
  • LIST; $ReturnHtmlStringSudoku .=<<
    Sudoku

    Kostenlos Sudoku spielen


    $hint_mobile

    Gratis Sudoku kostenlos Spielen


    Im Jahr 1970 wurde Sudoku das erste mal veröffentlicht: in New York vom dem Rätselexperten Dell in seinem Online- und Print-Magazin "Mathematische Rätsel und logische Probleme" präsentiert.
    Im 1984, genauer gesagt im April, hat der Zeitschriftenpublisher Nikoli in Japan das Rätsel in Wochenzeitschrift "Monthly Nikolist" seinen interessierten Lesern vorgestellt. Damals noch unter dem Namen Kaji Maki - wie der Nikoli-Präsident. Später nannte es man dann Sudoku. "Su" heißt "Nummer" und "doku" lautet "einzeln". Im Jahr 1986 wurde das Puzzel Sodoku dann in seiner heutigen Form veröffentlicht. Die Firma Nikoli hat immer noch das Warenzeichen für den Namen Sudoku im Patentamt für sich registriert.

    Kurze Zeit später nahm sich ein Computerexperte dem Thema an und entwickelte einen Softwarealgorithmus, mit dem man mittels Computern lösbare Sudoku Rätzsel erstellen kann. Es gibt aktuell 10 hoch 50 verschiedene Varianten eines Sudoku auf der ganzen Welt. Bloss warum ist es so beliebt und wird in Indien, Irland, Dänemark, Australien, Kanada, Israel und Deutschland so gerne gespielt? Es ist die Befriedigung, die sich einstellt, wenn man nach ca. 15 Minuten ein Sudoku Spiel geschafft und erfolgreich gelöst hat.

    Das Sudoku Onlinespiel auf BuzzerStar ist kostenlos und erfordert keine Registrierung - man kann es auf einem Smartphone oder auf dem PC oder Mac spielen. Die Software passt sich automatisch deinem Bildschirm an - Sudoku auf BuzzerStar ist reponsive programmiert. Unser Gratis Sudoku wird dich für Stunden an den Bildschirm deines Telefon oder Pc fesseln.
    Erzähl es deinen Freunden:

    Tags dieser News $tagcode
    "Hackers - Heroes of the Computer Revolution!"

    $copy

    END; return $ReturnHtmlStringSudoku; } public function ExtraPageGenerateContent($shortcode){ $func = new Functions(); $conn = new Connection(); $config = new Config(); $table = $config->sql_tablename_extracontent(); $pdo = $conn->prepareQuery(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE p_shortcode=:shortcode LIMIT 1"); $stmt->bindValue(':shortcode', $shortcode, PDO::PARAM_STR); $stmt->execute(); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); $p_articlelink = $rows[0]["p_articlelink"]; $p_picturelink = $rows[0]["p_picturelink"]; $p_description = $rows[0]["p_description"]; $p_title = $rows[0]["p_title"]; $p_description_fixed = $func->clear_description($p_description); $p_title_fixed = $func->clear_description($p_title); $linkingcode = "https://www.buzzerstar.com/news.php?a=$shortcode"; $headline_social = $p_title; $image_link = "https://www.buzzerstar.com/ai.php?s=".md5($p_picturelink); $ReturnHtmlString =<<

    $p_description_fixed


    $p_title_fixed
    $p_title_fixed


    Erzähl es deinen Freunden:

    (Klick eines der bunten Icons unter diesem Text
    zum teilen mit deinen Freunden auf Facebook,
    Twitter oder WhatsApp!)

    mit Facebook teilen mit Twitter teilen mit Google Plus teilen mit WhatsApp teilen mit Pinterest teilen mit Stumbleupon teilen Freunde mittels Email mitteilen mit Feedly RSS abonnieren

    END; $ReturnContentArray = array("keywords"=>"news, neuigkeiten, bild, heftig, cool", "articletext"=>$p_description, "headline"=>$headline, "returncontent" =>$ReturnHtmlString, "headline" =>$p_title, "canonical" => $p_articlelink, "picture"=>$p_picturelink); return $ReturnContentArray; } public function DetailpageGenerateContent($shortcode){ $ReturnHtmlString = ""; $sliderHTMLContent = ""; $sentences_content = ""; $func = new Functions(); $conn = new Connection(); $config = new Config(); $SSDTube = new SSDTube(); $detect = new Mobile_Detect; //$ip = new IP(); $deviceTypeMobile = $detect->isMobile(); $linkingcode_twittr = "https://www.buzzerstar.com/show.php?a=$shortcode"; $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE p_shortcode=:shortcode LIMIT 1"); $stmt->bindValue(':shortcode', $shortcode, PDO::PARAM_STR); $stmt->execute(); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); // video: $video_youtube_uri = $rows[0]["p_videolink"]; $SSDTube->identify($video_youtube_uri); $EmbeddedVideo = $SSDTube->embed; $tumbnailVideoImg = $SSDTube->thumbnail; $VideoAuthor = $SSDTube->author; $video_duration = $func->getDuration(); $video_title = $SSDTube->title; $video_description = $SSDTube->description; $video_width = $SSDTube->width; $video_height = $SSDTube->height; $video_youtube_embed = $SSDTube->youtube_embed; $youtube_watch = $SSDTube->youtube_watch; $tmp_http_yt_video = $func->ogTagsYoutubeVideo($video_youtube_uri); // category $category_id = $rows[0]["p_category"]; $catg_array = $config->array_category(); $category = $catg_array[$category_id]; $headline = $rows[0]["p_headline"]; $article = $rows[0]["p_articletext"]; $picture_desc = $rows[0]["p_picture_1_description"]; $headline_social = $func->clear_description($headline); $sentences = preg_split("/[!?.] /", $article, -1, PREG_SPLIT_NO_EMPTY); for($i=2; $i<=count($sentences); $i++){ if (strlen($sentences[$i])>1){ $sentences_content .= $sentences[$i].". "; } } $monate = array(1=>"Januar", 2=>"Februar", 3=>"März", 4=>"April", 5=>"Mai", 6=>"Juni", 7=>"Juli", 8=>"August", 9=>"September", 10=>"Oktober", 11=>"November", 12=>"Dezember"); list($pre_date,) = explode(" ",$rows[0]["p_timestamp"]); $monat = date("n",strtotime($pre_date)); $date_month = $monate[$monat]; $date_day = date("j", strtotime($pre_date)); $date_year = date("Y", strtotime($pre_date)); $keywords_list = ""; $keyword_meta = ""; $list = explode(";",$rows[0]["p_tags"]); $tagcode = << LIST; foreach ($list as $entry23) { if (strlen($entry23)>1 && !empty($entry23)){ $keywords_list .= "$entry23 | "; $keyword_meta .= "$entry23, "; $tagcode .= <<$entry23 LIST; }//if (strlen($entry23)>1){ } $tagcode .= ""; $plista_time = time() - 24*60*60; $PlistaWerbungString =<< END; $PlistaWerbungString = ""; if ($deviceTypeMobile === TRUE){ $PlistaWerbungString = ""; } // related content //$RelatedMoreContent = $func->GetNewRelatedContent($keywords_list." | ".$headline); // copyright $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger. All Rights Reserved."; /// Hier den Slider aufbauen: Start: /* $show_slider_value = substr_count($rows[0]["p_slidercontent"], ';'); if ($show_slider_value<=1){ $sliderHTMLContent = ""; } else { $slidercontent = $rows[0]["p_slidercontent"]; $sliderExplode = explode(";", $slidercontent); array_push($sliderExplode,$shortcode); $sliderHTMLContent .= <<
    END; } // if (array_key_exists($i,$sliderExplode)){ } // for ($i=0;$i<=count($sliderExplode);$i++){ $sliderHTMLContent .= <<

    END; } // if ($show_slider_value<=1){ */ /// Hier den Slider aufbauen: ENDE $ReturnHtmlString .=<<
    $sentences[0]. $sentences[1].
    $picture_desc
    $picture_desc

    $article
    $EmbeddedVideo

    $video_title

    $video_description

    Erzähl es deinen Freunden:



    Cloud Wolke mit den Tags dieses News-Artikel $tagcode
    $PlistaWerbungString
    $copy
    A BuzzerStar Company Brand
    END; $ReturnContentArray = array("keywords"=>"$keyword_meta, $category, news, neuigkeiten, bild, heftig, cool","articletext"=>$article, "headline"=>$headline, "returncontent" =>$ReturnHtmlString, "video_yt_beautify_ssl" => $tmp_http_yt_video, "category" => $category, "headline" =>$headline); return $ReturnContentArray; } public function StartpageGenerateNews($page){ $PageNext = $page + 1; $ReturnHtmlString = ""; $conn = new Connection(); $config = new Config(); $func = new Functions(); //$ip = new IP(); $pdo = $conn->prepareQuery(); $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $maxPageCount = $config->index_max_results(); $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $page = $func->stripHtml($_REQUEST['p']); //$extraContent = $func->getExtraContent(); if (!is_numeric($page) || !isset($page) || empty($page) || strlen($page) <= 0 ){ $page = 0; } $plista_time = time() - 24*60*60; $PlistaWerbungString =<<
    END; $ReturnHtmlString .=<<

    Die coolsten News auf BuzzerStar

      END; $monate = array(1=>"Januar", 2=>"Februar", 3=>"März", 4=>"April", 5=>"Mai", 6=>"Juni", 7=>"Juli", 8=>"August", 9=>"September", 10=>"Oktober", 11=>"November", 12=>"Dezember"); $from = ( $maxPageCount * $page ); //$stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY p_timestamp DESC LIMIT $from, 4;"); $stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY p_timestamp DESC LIMIT $from, $maxPageCount;"); $stmt->execute(); $row_count = 0; $all_row_count = 0; while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { $row_count++; $all_row_count++; $shortcode = ""; $headline = $rows["p_headline"]; $timestamp = $rows["p_timestamp"]; $article = $rows["p_articletext"]; $author = $rows["p_authorname"]; $backlink = $rows["p_sourcelink"]; $shortcode = $rows["p_shortcode"]; $category_id = $rows["p_category"]; $pic_descr = $rows["p_picture_1_description"]; $catg_array = $config->array_category(); $category = $catg_array[$category_id]; $categoryLink = $func->buildCategoryLink($category_id); $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); $linkingcode_twittr = "https://www.buzzerstar.com/show.php?a=$shortcode"; //$list = preg_split("/[!?.]/", $article, -1, PREG_SPLIT_NO_EMPTY); list($pre_date,) = explode(" ",$timestamp); $monat = date("n",strtotime($pre_date)); $date_month = $monate[$monat]; $date_day = date("j", strtotime($pre_date)); $date_year = date("Y", strtotime($pre_date)); $sentences = array(); $sentences = preg_split("/[!?.] /", $article, -1, PREG_SPLIT_NO_EMPTY); $imageFiller =<<$pic_descr$pic_descr FIN; $ReturnHtmlString .=<<
      END; /*Anweisung muss vor Hautpanweisung $ReturnHtmlString .=<< 1){ $ReturnHtmlString .=<<
      END; } if ( $row_count > 1){ $row_count = 0; } } // while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { /* //$from = ( $maxPageCount * $page ); $until = $maxPageCount - 4; $stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY RAND() DESC LIMIT $until;"); $stmt->execute(); //echo "SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY RAND() DESC LIMIT $from, $maxPageCount;
      "; $row_count = 0; $all_row_count = 0; while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { $row_count++; $all_row_count++; $shortcode = ""; $headline = $rows["p_headline"]; $timestamp = $rows["p_timestamp"]; $article = $rows["p_articletext"]; $author = $rows["p_authorname"]; $backlink = $rows["p_sourcelink"]; $shortcode = $rows["p_shortcode"]; $category_id = $rows["p_category"]; $pic_descr = $rows["p_picture_1_description"]; $catg_array = $config->array_category(); $category = $catg_array[$category_id]; $categoryLink = $func->buildCategoryLink($category_id); $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); $linkingcode_twittr = "https://www.buzzerstar.com/show.php?a=$shortcode"; //$list = preg_split("/[!?.]/", $article, -1, PREG_SPLIT_NO_EMPTY); list($pre_date,) = explode(" ",$timestamp); $monat = date("n",strtotime($pre_date)); $date_month = $monate[$monat]; $date_day = date("j", strtotime($pre_date)); $date_year = date("Y", strtotime($pre_date)); $sentences = array(); $sentences = preg_split("/[!?.] /", $article, -1, PREG_SPLIT_NO_EMPTY); $imageFiller =<<$pic_descr$pic_descr FIN; $ReturnHtmlString .=<<
      END; //Anweisung muss vor Hautpanweisung $ReturnHtmlString .=<< 1){ $ReturnHtmlString .=<<
      END; } if ( $row_count > 1){ $row_count = 0; } } // while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { */ $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger. All Rights Reserved."; $ReturnHtmlString .=<<

    Wir haben uns bemüht die Webseite mit Responsive Design für Desktop, Tablets und Smartphones startklar zu gestalten. Egal ob du ein Blackberry, Android Telefon, ein iPhone oder iPad benutzt, egal ob Apple Mac, Windows PC, Unix und Linux mit jedem (mobilen) Betriebssystem kannst du die Webseiten auf BuzzerStar besuchen. Die Seiten sind HTML5 und CSS3 optimiert, die Bilder reagieren responsive, d.h. auf einem Mobiltelefon werden die Bilder vor der Auslieferung verkleinert ausgeliefert. Der Desktop Rechner hingegen bekommt die volle (Full HD) Auflösung bei Bildern und Videos. Auf der Open Source Plattform Sourceforge und Google Code haben wir weitere Programme und Tools hinterlegt, die wir während der Entwicklung der BuzzerStar Suchmaschine kreiert haben. Ihr könnt sie kostenfrei herunterladen, die Lizenzen entsprechen dem GNU Lesser General Public License. Die Entwicklung der Spezialalgorithmen der Suchmaschine haben mehrere Jahre in Anspruch genommen und sind Teil der Forschungsarbeit von Sebastian Enger.

    "Hackers - Heroes of the Computer Revolution!"

    $copy

    END; $stmt = null; // doing this is mandatory for connection to get closed $pdo = null; return $ReturnHtmlString; } // public function StartpageGenerateNews($page){ public function StartpageGenerateHeader($show_headline){ $func = new Functions(); $config = new Config(); $LinkableCatgID = $config->category_to_show(); $category_content = ""; $category_content_mobile = ""; $headline_content = ""; if ($show_headline==1){ $headline_content =<<Humorvolles, Witziges, Verrücktes und kostenlose Spiele aus aller Welt. Teile es mit deinen Freunden! END; $logo_content =<<